package com.andong.service;

import com.andong.domain.dto.UpdatePasswordDTO;
import com.andong.domain.entity.Student;
import com.andong.domain.pojo.PageResult;
import com.andong.domain.pojo.Result;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.RequestParam;

import java.time.LocalDate;

/**
* @author 王海云
* @description 针对表【student】的数据库操作Service
* @createDate 2023-12-30 19:26:09
*/
public interface StudentService extends IService<Student> {
    Result selectById(Long id);

    Result updatePasswordByCode(UpdatePasswordDTO dto) throws Exception;

    Result updatePasswordByPre(UpdatePasswordDTO dto) throws Exception;

    PageResult queryList(Integer page, Integer pageSize, String name, Integer gender, Integer licenseType, Integer status, Integer learningStage, LocalDate begin, LocalDate end);

    void updateImage(String url);

    Result updatePhone(String phone, String code);

    Result updateStatus(Long id, Integer status);

    Result setCoach(Long studentId, Long coachId);

    Result delete(Long id);
}
